<script setup lang="ts">
import * as Icons from '@/icons'

defineProps({
  icon: String,
  title: String
})
</script>

<template>
  <el-icon v-if="icon"> <component :is="Icons[icon]" /> </el-icon>
  <span class="text-ellipsis">{{ title }}</span>
</template>

<style scoped lang="scss"></style>
